package com.neu.cloudFactory.VO;

import com.neu.cloudFactory.PO.ProductType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ProductTypeVO {
    private String id;
    private String name;

    public ProductTypeVO(ProductType productType){
        this.id = Integer.toString(productType.getId());
        this.name = productType.getName();
    }
}

